package com.liang.serviceImpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.liang.dao.OrdersDao;
import com.liang.pojo.Gorillaceo;
import com.liang.pojo.Orders;
import com.liang.service.OrdersService;

@Service
public class OrdersServiceImpl implements OrdersService{
	@Autowired
	OrdersDao ordersDao;

	public int insertOrders(Map<String, Object> map) {
		return ordersDao.insertOrders(map);
	}

	@Override
	public List<Orders> selectAllOrdersByUid(int uid) {
		return ordersDao.selectAllOrdersByUid(uid);
	}

	@Override
	public int deleteOrdersByOid(Gorillaceo gorillaceo) {
		return ordersDao.deleteOrdersByOid(gorillaceo);
	}

	@Override
	public int updateOrders(Orders orders) {
		return ordersDao.updateOrders(orders);
	}

	@Override
	public Orders selectOrdersByOid(int oid) {
		return ordersDao.selectOrdersByOid(oid);
	}
	
}
